Windows ODBC
The Windows ODBC Configure Data Source Wizard helps you set up your data source drivers by connecting to the Windows ODBC (Open Database Connectivity) Data Sources settings for a particular Windows user or computer.
Third-Party Database Selection
Select a data source type
- System: Available to any user logged in to the current computer.
Choose a data source driver
- Select a data source from the drop-down list.
Administer Data Source Providers
To configure data sources
- Click Administer Data Source Providers.
- The ODBC Data Source Administrator dialog box will open. This is a Windows dialog box associated with the current computer. It is also available from the Windows Control Panel in the Administrative Tools option.
- Select the System DSN tab.
- Click Add to select a driver.
- A setup dialog box for the selected driver will appear. Configure your preferred settings and click OK.
- In the Configure Data Source Wizard, select your driver from the drop-down list.
Third-Party Database Authentication
- Choose whether to use Windows authentication or server authentication. If using server authentication, specify a username and password.
- When you have finished configuring your data source, click Finish.
Writing to Excel through ODBC
ReadOnly is the default setting for an ODBC connection to Excel. Trying to write to Excel through ODBC in Windows returns error message “Operation must use an updateable query”. To be able to write to Excel through ODBC, use one of the following methods:
If you are connecting through a DSN, perform the following steps:
- Open Control Panel, and then click ODBC Data Source Administrator.
- Double-click your DSN.
- In the ODBC Microsoft Excel Setup dialog box, click Options.
- Ensure the ReadOnly checkbox is not selected.
If you are using a direct/DSN-less connection, include "ReadOnly=0" in the connection string. For example:
cn.Open "Driver={Microsoft Excel Driver (*.xls)};DBQ=C:\MyDoc.xls;ReadOnly=0;"
For additional information, see the Microsoft KB article on the Windows error message.